package com.derive.education_service.web.platform.service;

import com.derive.education_service.common.global.ResponseMessage;
import com.derive.education_service.entity.Business;
import com.derive.education_service.web.platform.bean.dto.BusinessAdd;
import com.derive.education_service.web.platform.bean.dto.BusinessUp;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 机构主营业务操作接口
 */
@Component
public interface BusinessService {
    // 新增机构主营业务数据
    ResponseMessage addBusiness(MultipartFile file, BusinessAdd businessAdd);

    // 删除机构主营业务数据 -- 根据id
    boolean delBusiness(Integer businessId);

    // 删除机构下所有的主营业务数据 -- 机构id
    boolean batchDelBusiness(Integer platformId);

    // 编辑机构主营业务数据
    ResponseMessage upBusiness(MultipartFile file, BusinessUp businessUp);

    // 获取指定机构下的主营业务(菜单) -- 不分页 -- 基本信息
    List<Business> getBusinessListByPlatformId(Integer platformId);

    // 根据id查询指定业务信息 -- 详细信息
    Business getBusinessById(Integer businessId);
}
